package com.hxkj.service.wechat;

import com.hxkj.domain.po.Applet;
import com.hxkj.domain.po.AppletUser;
import com.hxkj.domain.po.AuthUser;
import com.platform.common.domain.result.ResultPageStruct;
import com.platform.common.domain.to.PageTo;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * 用户接口
 * <p>
 * Create by chenwei on 2018/6/14 15:17
 */
public interface AppletUserService {

    /**
     * 客户列表
     * @param appletUser
     * @return 翻页数据
     * @throws Exception
     */
    ResultPageStruct<AppletUser> getlist(@ModelAttribute PageTo pageTo, @ModelAttribute AppletUser appletUser) throws Exception;

    /**
     * 导出客户列表
     *
     * @param appletUser
     * @return 翻页数据
     * @throws Exception
     */
    List<Map<String, Object>> export(@ModelAttribute PageTo pageTo, @ModelAttribute AppletUser appletUser) throws Exception;

    /**
     * 小程序列表下拉框
     *
     * @return 翻页数据
     * @throws Exception;
     */
    List<Applet> getlist(@RequestBody AuthUser authUser) throws Exception;

    /**
     * 删除手机号
     *
     *
     * @throws Exception;
     */
    void delete(@RequestBody AppletUser appletUser) throws Exception;
}
